import com.atguigu.realtime.annotation.NoSink;

import java.lang.reflect.Field;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/4/26 15:59
 */
public class Anno {
    public static void main(String[] args) throws NoSuchFieldException {
        Class<Person> pClass = Person.class;
    
        Field age = pClass.getDeclaredField("name");
        NoSink ns = age.getAnnotation(NoSink.class);
        System.out.println(ns);
    }
}

class Person{
    @NoSink
    private int age = 10;
    private String name = "aaa";
}
